package com.yusheng.tr.common.core.entity.multi;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 报表类型
 * </p>
 *
 * @author author
 * @since 2023-10-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("report_type")
@Schema(title = "ReportType对象", description="报表类型管理表")
public class ReportTypeEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @Schema(name = "主键")
    private String id;


    @TableField(value = "report_name")
    @NotEmpty(message = "报表名称不能为空")
    @Schema(name = "报表名称")
    private String reportName;

    @Schema(name = "状态;0启用，1禁用")
    private Integer status;
}
